
new Vue({
	el: '#main',
	data: {
		data:"",
		name:"",
		nickName:'',
		sex:'',
		address:'',
		birth:'',
		lang:'',
		position:''
	},
	methods: {
		plusReady: function() {
		},
		save: function() {
			var  context=this;
			var jsonData = {
				language:this.lang,
				userAlias:this.name,
				nickName:this.nickName,
				userSex:this.sex,
				address:this.address,
				birth:this.birth,
				userPosition:this.position
			}
			ajAjax("/app/user/updateUserInfo.do", jsonData, function(data) {
				mui.toast("修改成功")
			}, function(err) {

			});
		},
		logoutOrg: function() {
		},
		toNewOrg:function(e){
			e.stopPropagation();
			commonOpenWindow("create-organize.html", "create-organize.html", null, "1")
		}

	},
	mounted: function() {
		if(window.plus) {
			this.plusReady();
		} else {
			document.addEventListener("plusready", this.plusReady, false);
		}
	}
});